package category

import "gin_demo/internal/model"

type AddCategoryReq struct {
	ParentId int    `json:"parent_id" binding:"required"`
	Name     string `json:"name" binding:"required"`
	PicUrl   string `json:"pic_url binding:"required"`
	Sort     int    `json:"sort"`
	Level    int    `json:"Level"`
}

type CategoryRes struct {
	Count int64 `json:"count"`
	List  []model.Category
}

type UpdateCategoryReq struct {
	Id       int    `json:"id"`
	ParentId int    `json:"parent_id"`
	PicUrl   string `json:"pic_url"`
	Name     string `json:"name"`
	Sort     int    `json:"sort"`
	Level    int    `json:"Level"`
}

type SoftDeleteReq struct {
	Id int `json:"id" binding:"required"`
}

type PageListReq struct {
	Page  int `json:"page" binding:"required"`
	Limit int `json:"limit" binding:"required"`
}
